/*
 ----------------------------------------------------------------------------------
                           "THE BEER-WARE COPYRIGHT LICENSE"
                                     (Revision 43)
                                      -----------
    Rymek [rymek@rymek.org] wrote this file. As long as You retain this notice and
    this file has been sent directly to You by the author, You can do whatever You
    want with this stuff as long as You don't sell or rent it. If we meet some day,
    and You think this stuff is worth it, You can buy me a beer in return :-)
                                                                 __________
                                                                 Paweł Rymaszewski
  ----------------------------------------------------------------------------------
 */

package constants;

/**
 * Constants for variables/settings used in application
 *
 * @author rymek
 *         User: rymek
 *         Date: 29.06.11
 *         Time: 12:36
 */
public interface Constants {

    // database constants
    public static final int DB_MAX_RESULTS_PER_CONN = 495;                      // Maximum number of rows fetched allowed per one db connection/session
    public static final int DB_MAX_THREAD_COUNT = 20;                           // maximum number of database threads allowed
    public static final int DB_ACCESS_RETRIES = 5;                              // maximum number of retries for database
    public static final String DB_TEXT_ENCODING = "UTF-8";                      // Database models encoding
    public static final String DB_PUBLISHTIMESTAMP_NAME = "publishtimestamp";   // name of the publishtimestamp column in db
    public static final String DB_LASTUPDDTTM_NAME = "lastupddttm";             // name of the lastupddttm column in the db

    // date/time constants
    public static final String DATE_FORMAT = "yyyy-MM-dd";                      // default date format for every date value
    public static final String TIME_FORMAT = "HH:mm:ss";                        // default time format for every time value
    public static final String DTTM_FORMAT = "yyyy-MM-dd HH:mm:ss";             // default datetime format for every datetime value
    public static final String DTTM_FILE_FORMAT = DATE_FORMAT + " HH_mm_ss";    // default datetime format for temp result directory

    // file constants
    public static final String TEMP_DIR = "tmp";                                // temp directory for storing fetched messages
    public static final String RESULT_FILE_EXTENSION = ".xml";                  // extension for result files
}
